package com.fos.BluetoothStory.model;

import android.util.SparseArray;

public class EQBean {
	/**
	 * 类型 1~5 1HPF 2LPF 3HSF 4LSF 5PF
	 */
	public int		mType	= -1;

	/**
	 * 频率 20 - 20000
	 */
	public int		mFrequency;
	/**
	 * q值：0.0 - 8.0
	 */
	public float	mQValue;
	/**
	 * 增益 -12~12
	 */
	public int		mGain;

    public String getType(){
        if (EQ_TYPE.get(mType)!=null){
            return EQ_TYPE.get(mType);
        }else{
            return Integer.toString(mType);
        }
    }

    private final static SparseArray<String> EQ_TYPE = new SparseArray<String>() {
        {
            put(1, "HPF");
            put(2, "LPF");
            put(3, "HSF");
            put(4, "LSF");
            put(5, "PF");
        }
    };
}
